//
//  AppDelegate.m
//  WeChat
//
//  Created by 互联网 on 16/10/26.
//  Copyright © 2016年 bigtree. All rights reserved.
//

#import "AppDelegate.h"
#import "UIStoryboard+BT.h"
#import "DDTTYLogger.h"
#import "DDLog.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    NSLog(@"%@", NSTemporaryDirectory());
    // Override point for customization after application launch.
    
    // 配置XMPP的日志

    [DDLog addLogger:[DDTTYLogger sharedInstance]];
    
    if ([BTAccout shareAccount].isLogin) {
        [UIStoryboard showInitialVCWithName:@"Main"];
        
        // 自动登录
        [[BTXMPPTool sharedBTXMPPTool] xmppLogin:nil];
    }
    return YES;
}



@end
